home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 September / CHIP 1996 szeptember (CD07).zip / CHIP_CD07.ISO / povray30 / povmsdos.exe / POVMSDOS.ZIP / TEXSAMPS / WOODS / CEDAR.POV < prev    next >
Text File  |  1995-12-12  |  942b  |  47 lines

  1. // Persistence Of Vision Raytracer version 3.0 sample file.
  2. #include "colors.inc"
  3. #include "textures.inc"
  4. #include "shapes.inc"
  5. #include "woods.inc"
  6.  
  7. camera {
  8.    location <0, 10, -20>
  9.    direction <0, 0,  3>
  10.    right x*1.33
  11.    look_at 1.5*y
  12. }
  13.  
  14. light_source {<-50, 50, -1000> color Gray75}
  15. light_source {< 50, 30, -20> color White}
  16.  
  17. background { color Gray30 }
  18.  
  19. #declare Stack =
  20. union {
  21.    sphere{<0, 4, 0>, 1}
  22.    cone { -y,1, y, 0.5 translate 2*y }
  23.    object {UnitBox}
  24.    no_shadow
  25. }
  26.  
  27. #include "cedar.map"
  28. object {
  29.     Stack
  30.     texture{
  31.         pigment {
  32.             P_WoodGrain6A
  33.             color_map { M_Cedar }
  34.         }
  35.         normal {            // Copy of WoodGrain6A pigment
  36.             wood 0.4
  37.             turbulence <0.05, 0.08, 1>
  38.             octaves 4
  39.             scale <0.15, .15, 1>
  40.             translate -x*100
  41.         }
  42.      scale 0.6
  43.      rotate z*35
  44.      rotate x*85
  45.     }
  46. }
  47.